package com.example.rabbitmqdemo.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class C {

    @Autowired
    private B b;

    @RequestMapping("/index")
    public String s(){
        b.fun1();
        return "1";
    }
}
